/**
 * Created by XPL on 2017/4/17.
 */
angular.module('app').directive('expander', [function () {
    return {
        restrict: 'AE',
        replace: true,
        transclude: true,
        templateUrl: 'view/template/test/complieAndLink.html',
        scope: {
            titles: '=expanderTitle',
            aa: '@',
            bb: '&',
        },
        link: function (scope, element, attrs) {
            scope.showMe = false;
            scope.toggle = function toggle() {
                scope.showMe = !scope.showMe;
            }
            /*console.log(scope);
            console.log(element);
            console.log(attrs);*/
        }
    };
}]);
